Automattic\WooCommerce\Internal\Features\FeaturesController D

Total Complexity 195
Dependencies 14
Dependents 17
Total lines 1,908
Lines of code 1,025
Logical lines of code 438
Comment lines 598
Methods 46
Properties 12

Methods 46

Method Rating Maintainability Complexity Lines of code
add_feature_settings()
B
37 14 76
get_setting_for_feature()
A
39 15 59
init_feature_definitions()
A
27
4 218
handle_plugin_list_rows()
A
40 11 66
change_feature_enable_from_query_params()
A
50 11 25
register_compatibility_internal()
A
50 9 27
get_incompatible_plugins()
A
51 9 24
maybe_display_feature_incompatibility_warning()
A
46 8 38
maybe_display_current_feature_filter_description()
A
48 7 36
process_updated_option()
A
48 7 34
filter_plugins_list()
S
57 8 15
get_features()
S
54 6 22
get_compatible_features_for_plugin()
S
50 5 31
add_feature_definition()
S
50 5 30
handle_plugins_page_views_list()
S
51 5 24
__construct()
S
50 4 27
declare_compatibility()
S
57 4 15
feature_is_enabled()
S
62 4 11
verify_did_woocommerce_init()
S
61 4 11
get_compatible_plugins_for_feature()
S
56 3 18
sync_iapi_mini_cart_feature()
S
58 3 17
get_feature_definitions()
S
61 3 13
get_mcp_integration_description()
S
53 2 26
register_additional_features()
S
63 3 11
process_pending_declarations()
S
63 3 11
display_email_improvements_feedback_notice()
S
63 3 11
enqueue_script_to_fix_plugin_list_html()
S
60 2 21
init_compatibility_info_by_feature()
S
64 3 10
get_default_plugin_compatibility()
S
63 3 9
change_feature_enable()
S
69 3 6
display_notices_in_plugins_page()
S
67 3 9
is_preview_email_improvements_enabled()
S
64 3 10
feature_enable_option_name()
S
68 2 7
add_features_section()
S
70 2 6
handle_plugin_deactivation()
S
64 2 9
maybe_invalidate_cached_plugin_data()
S
72 2 5
init()
S
73 1 5
feature_is_enabled_by_default()
S
75 1 4
feature_exists()
S
75 1 4
should_skip_compatibility_checks()
S
75 1 4
allow_enabling_features_with_incompatible_plugins()
S
81 1 3
allow_activating_plugins_with_incompatible_features()
S
81 1 3
start_listening_for_option_changes()
S
74 1 4
process_added_option()
S
79 1 3
get_features_page_url()
S
80 1 3
set_change_feature_enable_nonce()
S
75 1 4